{if $type eq 404}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>404 Error Page</title>
<style type="text/css">
@import url("/public/css/stylesheet.css");
</style>
<link href="/public/css/blue.css" rel="stylesheet" type="text/css" />
<!-- PNGFix for IE6 -->
<script type="text/javascript" src="/public/js/jquery.pngFix.js"></script>
<!-- Active pngfix -->
<script type="text/javascript"> 
    		$(document).ready(function(){ 
      		$(document).pngFix(); 
    	}); 
		</script>
</head>
<body>
<div id="warp">
  <!-- Header top -->
  <div id="header_top"></div>
  <!-- End header top -->
  <!-- Header -->
  <div id="header">
    <h2>Oops, page not found</h2>
    <h5>你怎么把页面都给弄丢了呢..........</h5>
  </div>
  <!-- End Header -->
  <!-- The content div -->
  <div id="content">
    <!-- text -->
    <div id="text">
      <!-- The info text -->
      <p>Sorry, Evidently the document you were looking for has either been moved or no longer exists. Please use the navigational links to the right to locate additional resources and information.</p>
      <br />
      <h3>Lost? We suggest...</h3>
      <!-- End info text -->
      <!-- Page links -->
      <ul>
        <li><a href="#">&raquo; Home</a></li>
        <li><a href="#">&raquo; Portfolio</a></li>
        <li><a href="#">&raquo; About</a></li>
        <li><a href="#">&raquo; Contact</a></li>
      </ul>
      <!-- End page links -->
    </div>
    <!-- End info text -->
    <!-- Book icon -->
    <img id="book" src="/public/img/img-01.png" alt="Book iCon" />
    <!-- End Book icon -->
    <div style="clear:both;"></div>
  </div>
  <!-- End Content -->
  <!-- Footer -->
  <div id="footer">
    <!-- Twitter -->
    <img src="/public/img/twitter.png" alt="twitter" id="twitter" />
    <p id="twitter_text"> <a href="#">@phpythoner</a>
      <!-- Get tweet -->
       <a href="#">Twitter</a>
      <!-- End get tweet -->
    </p>
    <!-- End Twitter -->
    <!-- Search Form -->
    <form action="#" method="post">
      <p id="searchform">
        <input type="submit" name="submit" id="submit" value="Search" />
        <input type="text" name="search" id="search" />
      </p>
    </form>
    <!-- End Search form -->
    <div style="clear:both;"></div>
  </div>
  <!-- End Footer -->
  <!-- Footer bottom -->
  <div id="footer_bottom"></div>
  <!-- End Footer bottom -->
  <!-- Social Media list -->
  <ul id="socialmedia">
    <li> <a href="#"><img src="/public/img/socialmedia/twitter_32.png" alt="Twitter" /></a> </li>
    <li> <a href="#"><img src="/public/img/socialmedia/facebook_32.png" alt="Facebook" /></a> </li>
    <li> <a href="#"><img src="/public/img/socialmedia/lastfm_32.png" alt="Last Fm" /></a> </li>
    <li> <a href="#"><img src="/public/img/socialmedia/flickr_32.png" alt="Flickr" /></a> </li>
    <li> <a href="#"><img src="/public/img/socialmedia/vimeo_32.png" alt="Vimeo" /></a> </li>
    <li> <a href="#"><img src="/public/img/socialmedia/rss_32.png" alt="Rss" /></a> </li>
  </ul>
  <!-- End Social media -->
  <div style="clear:both;"></div>
</div>
<!-- End Warp around everything -->
</body>
</html>
{else}
{$content}
{/if}